home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / CIncludes / TerminalTools.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-11  |  3.2 KB  |  148 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        TerminalTools.h
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. */
  16.  
  17. #ifndef __TERMINALTOOLS__
  18. #define __TERMINALTOOLS__
  19.  
  20.  
  21. #ifndef __DIALOGS__
  22. #include <Dialogs.h>
  23. #endif
  24. /*    #include <Errors.h>                                            */
  25. /*        #include <ConditionalMacros.h>                            */
  26. /*    #include <Memory.h>                                            */
  27. /*        #include <Types.h>                                        */
  28. /*        #include <MixedMode.h>                                    */
  29. /*    #include <Windows.h>                                        */
  30. /*        #include <Quickdraw.h>                                    */
  31. /*            #include <QuickdrawText.h>                            */
  32. /*        #include <Events.h>                                        */
  33. /*            #include <OSUtils.h>                                */
  34. /*        #include <Controls.h>                                    */
  35. /*            #include <Menus.h>                                    */
  36. /*    #include <TextEdit.h>                                        */
  37.  
  38. #ifndef __TERMINALS__
  39. #include <Terminals.h>
  40. #endif
  41. /*    #include <CTBUtilities.h>                                    */
  42. /*        #include <StandardFile.h>                                */
  43. /*            #include <Files.h>                                    */
  44. /*        #include <AppleTalk.h>                                    */
  45. /*    #include <Connections.h>                                    */
  46.  
  47. #ifdef __cplusplus
  48. extern "C" {
  49. #endif
  50.  
  51. #if GENERATINGPOWERPC
  52. #pragma options align=mac68k
  53. #endif
  54.  
  55. #ifdef __CFM68K__
  56. #pragma lib_export on
  57. #endif
  58.  
  59.  
  60. enum {
  61.     tdefType                    = 'tdef',
  62.     tvalType                    = 'tval',
  63.     tsetType                    = 'tset',
  64.     tlocType                    = 'tloc',
  65.     tscrType                    = 'tscr',
  66.     tbndType                    = 'tbnd',
  67.     tverType                    = 'vers',
  68. /* messages */
  69.     tmInitMsg                    = 0,
  70.     tmDisposeMsg                = 1,
  71.     tmSuspendMsg                = 2,
  72.     tmResumeMsg                    = 3,
  73.     tmMenuMsg                    = 4,
  74.     tmEventMsg                    = 5,
  75.     tmActivateMsg                = 6,
  76.     tmDeactivateMsg                = 7,
  77.     tmGetErrorStringMsg            = 8,
  78.     tmIdleMsg                    = 50,
  79.     tmResetMsg                    = 51,
  80.     tmKeyMsg                    = 100,
  81.     tmStreamMsg                    = 101,
  82.     tmResizeMsg                    = 102,
  83.     tmUpdateMsg                    = 103,
  84.     tmClickMsg                    = 104,
  85.     tmGetSelectionMsg            = 105,
  86.     tmSetSelectionMsg            = 106,
  87.     tmScrollMsg                    = 107,
  88.     tmClearMsg                    = 108
  89. };
  90.  
  91. enum {
  92.     tmGetLineMsg                = 109,
  93.     tmPaintMsg                    = 110,
  94.     tmCursorMsg                    = 111,
  95.     tmGetEnvironsMsg            = 112,
  96.     tmDoTermKeyMsg                = 113,
  97.     tmCountTermKeysMsg            = 114,
  98.     tmGetIndTermKeyMsg            = 115,
  99. /* messages for validate DefProc    */
  100.     tmValidateMsg                = 0,
  101.     tmDefaultMsg                = 1,
  102. /* messages for Setup DefProc    */
  103.     tmSpreflightMsg                = 0,
  104.     tmSsetupMsg                    = 1,
  105.     tmSitemMsg                    = 2,
  106.     tmSfilterMsg                = 3,
  107.     tmScleanupMsg                = 4,
  108. /* messages for scripting defProc    */
  109.     tmMgetMsg                    = 0,
  110.     tmMsetMsg                    = 1,
  111. /* messages for localization defProc  */
  112.     tmL2English                    = 0,
  113.     tmL2Intl                    = 1
  114. };
  115.  
  116. typedef struct TMSearchBlock TMSearchBlock, *TMSearchBlockPtr;
  117.  
  118. struct TMSearchBlock {
  119.     StringHandle                    theString;
  120.     Rect                            where;
  121.     TMSearchTypes                    searchType;
  122.     TerminalSearchCallBackUPP        callBack;
  123.     short                            refnum;
  124.     TMSearchBlockPtr                next;
  125. };
  126. typedef struct TMSetupStruct TMSetupStruct, *TMSetupPtr;
  127.  
  128. struct TMSetupStruct {
  129.     DialogPtr                        theDialog;
  130.     short                            count;
  131.     Ptr                                theConfig;
  132.     short                            procID;                        /* procID of the tool */
  133. };
  134.  
  135. #ifdef __CFM68K__
  136. #pragma lib_export off
  137. #endif
  138.  
  139. #if GENERATINGPOWERPC
  140. #pragma options align=reset
  141. #endif
  142.  
  143. #ifdef __cplusplus
  144. }
  145. #endif
  146.  
  147. #endif /* __TERMINALTOOLS__ */
  148.